
@echo off

set ext_build_dir=-%~1
set ext_install_dir=/%~1

if "%~1" == "" (
	set ext_build_dir=
	set ext_install_dir=
)

del zz-msvs2022%ext_build_dir%\\CMakeCache.txt

cmake 	-B zz-msvs2022%ext_build_dir% ^
		-G "Visual Studio 17 2022" ^
		-DCMAKE_PREFIX_PATH=/install/vs2022%ext_install_dir% ^
 		-DCMAKE_INSTALL_PREFIX=/install/vs2022%ext_install_dir%/yate ^
		.

@echo on

